package cn.initcap.designpattern.pattern.structural.proxy.db;


import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @author initcap
 * @date Created in 2018/9/18 AM8:53.
 */
public class DynamicDataSource extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceContextHolder.getDataBaseType();
    }
}
